<div class="col-sm-12 col-md-12">

<div class="row">
        <div class="col-sm-12 col-md-12">
            <form class="form-custom clearfix">
	        <div class="col-sm-2 col-md-2">
	            <input class="form-control"  type="text" placeholder="姓名/身份证/合同号" ng-model="params.keyword"/>       
	        </div>   
                <div class="col-sm-3 col-md-3">
                    <button class="btn btn-custom" type="button" data-toggle="modal" data-target="#addandedit" on-click="clearForm()"  upload-refresh>新增</button>
	                <button class="btn btn-custom" type="submit" ng-click="refresh('first',true)">查询</button>   
	                 
                </div>
            </form>
        </div>
     </div>   

    <table class="table table-striped table-bordered table-condensed index-center  table-costom">
        <thead>
        <tr>
            <th >序号</th>
            <th >姓名</th>
            <th >合同号</th>
            <th width="170">身份证</th>
            <th>借款人身份</th>
            <th>担保状态</th>
            <th>资金用途</th>
            <th >金额(万)</th>
            <th >起息日</th>
            <th >到息日</th>
            <th>操作</th>
 
        </tr>
        </thead>
        <tbody>
        <tr class="rowlink" ng-repeat="item in limitArr">
            <td>{{current*limit+$index+1}}</td>
            <td>{{item.borrowerName}}</td>
            <td>{{item.borrowerContract}}</td>
            <td>{{item.borrowerId  }}</td>
            <td>{{item.borrowerJob | DSL_borrowerjob}}</td>
            <td>{{item.warrantStatus |  DSL_borrowerwarrant}}</td>
            <td>{{item.moneyUseage | DSL_borrowerusage}}</td>
            <td>{{item.contractAmount | makenumberformat}}</td>
            <td>{{item.contractStartdate}}</td>
            <td>{{item.contractExpiredate}}</td>
 
            <td>
                
               
                <a href="javascript:"  ng-click="deletec(item.recordId)">删除</a>
            </td>
             
        </tr>
        </tbody>
    </table>
            <div data-remote-paging="pager" 
					data-refresh="refresh" 
					data-current="current" 
					data-total="total" 
					data-data="limitArr"
					data-limit="limit"
					data-params="params"
			></div>
</div>
 
  
 
<div class="modal fade" id="addandedit" tabindex="-1" role="dialog" aria-hidden="true">
<form class="form-horizontal" name="addSyncApplForm" novalidate="novalidate"    ng-submit="create(pageitem)" >
    <div class="modal-dialog" style="width: 830px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4  class="modal-title">新增</h4>
            </div>
            <div class="modal-body">
               <div class="row">
                    <div class="col-sm-12 col-md-12">
             <h6 class="modal-title">借款人信息</h6>
             
             
             
                      <div class="form-group">
			                <label class="col-lg-2 control-label">借款人姓名</label>
			                <div class="col-lg-3">
			                    <input type="text" class="form-control" required ng-model="pageitem.borrowerName" ng-maxlength="50" ng-trim maxlength="50" />
			                </div>
			                 <span class="mustItem">*</span>
			                 <label class="col-lg-2 control-label">合同号</label>
			                <div class="col-lg-3">
			                     <input type="text" class="form-control" required ng-model="pageitem.borrowerContract" ng-maxlength="10"   ng-trim maxlength="10" />
			                </div>
			                <span class="mustItem">*</span>
		 
                        </div>
                        
                       <div class="form-group">
                       	 <label class="col-lg-2 control-label">身份证</label>
			                <div class="col-lg-3">
			                    <input type="text" class="form-control" required ng-model="pageitem.borrowerId" ng-maxlength="50" ng-trim maxlength="50" />
			                </div>
			                <span class="mustItem">*</span>
			                <label class="col-lg-2 control-label">身份</label>
			                <div class="col-lg-3">
			                    <select   id="selectedjob" ng-model="pageitem.borrowerJob"   ng-init="pageitem.borrowerJob = '1'"
			                           required select2 
			                          ng-options="pageitem.jobid as pageitem.jobname for pageitem  in borrowerjob"
							    ></select>
			                </div>
			                 <span class="mustItem">*</span>

		 
                        </div>
             
             
 
                        <div class="form-group">
                        	<label class="col-lg-2 control-label">担保状态</label>
			                <div class="col-lg-3">
			                    <select   id="selectwarrant" ng-init="pageitem.warrantStatus = '1'" ng-model="pageitem.warrantStatus"  
			                           required select2 
			                          ng-options="pageitem.warrantid as pageitem.warrantname for pageitem  in borrowerwarrant"
							    ></select>
			                </div>
			                <span class="mustItem">*</span>
			                <label class="col-lg-2 control-label">资金用途</label>
			                <div class="col-lg-3">
			                    <select   id="selectusage" ng-init="pageitem.moneyUseage = '1'" ng-model="pageitem.moneyUseage"  
			                           required select2 
			                          ng-options="pageitem.usageid as pageitem.usagename for pageitem  in borrowerusage"
							    ></select>
			                </div>
			                 <span class="mustItem">*</span>

		 
                        </div>
   
                        <div class="form-group">
                       		 
			               <label class="col-lg-2 control-label">金额（万）</label>
			                <div class="col-lg-3">
			                    <input type="text" class="form-control" required ng-model="pageitem.contractAmount" ng-maxlength="30" ng-trim maxlength="30" />
			                </div>
			                 <span class="mustItem">*</span>
                       
		 
                        </div>
                        
                       <div class="form-group">
                       		
			                <label class="col-lg-2 control-label">起息日</label>
			                <div class="col-lg-3">
			                    <div data-datetimepicker="pageitem.contractStartdate"></div>
			                </div>
			                 <span class="mustItem">*</span>
			               <label class="col-lg-2 control-label">到息日</label>
			                <div class="col-lg-3">
			                    <div data-datetimepicker="pageitem.contractExpiredate"></div>
			                </div>
			                 <span class="mustItem">*</span>
 
		 
                        </div>
                        
            
 
    
                        
          

          
          
                 
          
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-primary"     ng-disabled="addSyncApplForm.$invalid" ng-click="save(pageitem)">保存</button>
                <button type="button" class="btn btn-danger"     ng-click="clearForm()">重置</button>
                <button type="button" class="btn btn-default"    data-dismiss="modal">取消</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    </form>
    <!-- /.modal-dialog -->
</div>
 
 
 
 
 
